
<html>
    <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
    </head>
    <body>

        <?
        echo $this->Paginator->prev('<<Previous', null, null, array('class' => 'disable'));
        echo "|" . $this->Paginator->numbers() . "|";
        echo $this->Paginator->next('>>Next', null, null, array('class' => 'disable'));
        echo "Page" . $this->Paginator->counter();
        ?>
        <?
        if ($data == NULL) {
            echo "Data Empty";
        } else {
            echo "<table>
            <tr>
            <td>ID</td>
            <td>ISBN</td>
            <td>TITLE</td>
            </tr>";
            foreach ($data as $item) {
                echo "<tr>";
                echo "<td>" . $item['Book']['id'] . "</td>";
                echo "<td>" . $item['Book']['isbn'] . "</td>";
                echo "<td>" . $item['Book']['title'] . "</td>";
            }
        }
        ?>
        <? echo $sum ;?>
    </body>
</html>